<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<form method="post" action="/monitor/query_tag.php" name="bdform" id="bdform">

<table border="0" cellpadding="5" cellspacing="1" width="98%">
<tr valign="top">
	<td class="formfielddesc">ID<br />
		<span class="required">{required}</span> No spaces please</td>
	<td class="formfield">
		<?
		if ($type == "edit")
		{
			?>
			<?=$tagInfo["ID"];?>
			<?
		}
		else
		{
			?>
			<input type="text" value="<?=$tagInfo["ID"];?>" name="ID" class="textfield" />
			<?
		}
		?>
	</td>
</tr>
<tr valign="top">
	<td class="formfielddesc">Phone/Email<br />
		<span class="required">{required}</span></td>
	<td class="formfield">
		<input type="text" value="<?=$tagInfo["phoneNumber"];?>" name="phoneNumber" class="textfield" />
	</td>
</tr>
<tr valign="top">
	<td class="formfielddesc">Notes<br />
	</td>
	<td class="formfield">
		<textarea name="notes" class="textareafield"><?=$tagInfo["notes"];?></textarea>
	</td>
</tr>

<tr valign="top">
	<td class="formfielddesc" colspan="2">
	<div align="center"><?
	if ($type=="addnew")
	{
	?>
		<input type="hidden" name="action" value="addtag" />
	<?
	}
	
	if ($type=="edit")
	{
	?>
		<input type="hidden" name="action" value="edittag" />
		<input type="hidden" name="ID" value="<?=$_REQUEST["tagID"];?>" />
	<?
	}
	?></div>
	
	</td>
</tr>
</table>

<br />



</form>
